package com.ruoyi.framework.reptile.webmagic.jingcai.football;

import com.alibaba.fastjson.JSON;
import com.ruoyi.framework.reptile.webmagic.jingcai.basic.Root;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

/**
 * @author dzl
 * @Description TODO
 * @date 2024年07月09日 20:29:00
 */
public class JingCaiFootBallOpeningQuotationPipeline implements Pipeline {

    @Override
    public void process(ResultItems resultItems, Task task) {
        String jcData = resultItems.get("jcData").toString();
        Root root = JSON.parseObject(jcData, Root.class);
        System.out.println(JSON.toJSONString(root));
    }
}
